import request from '@/utils/request'

// 查询每日车厢列表
export function listDailyTrainCarriage(query) {
  return request({
    url: '/business/daily-train-carriage/list',
    method: 'get',
    params: query
  })
}

// 查询每日车厢详细
export function getDailyTrainCarriage(id) {
  return request({
    url: '/business/daily-train-carriage/' + id,
    method: 'get'
  })
}

// 新增每日车厢
export function addDailyTrainCarriage(data) {
  return request({
    url: '/business/daily-train-carriage',
    method: 'post',
    data: data
  })
}

// 修改每日车厢
export function updateDailyTrainCarriage(data) {
  return request({
    url: '/business/daily-train-carriage',
    method: 'put',
    data: data
  })
}

// 删除每日车厢
export function delDailyTrainCarriage(id) {
  return request({
    url: '/business/daily-train-carriage/' + id,
    method: 'delete'
  })
}

// 查询每日车厢分组列表
export function listDailyTrainCarriageByGroup(query) {
  return request({
    url: '/business/daily-train-carriage/listByGroup',
    method: 'get',
    params: query
  })
}